package com.franklin.ideaplugin.api.constants.ignore;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * @author Ye Junhui
 * @since 2023/7/21
 */
public class IgnoreClasses {

    public static final Set<String> IGNORE_PACKAGES = Sets.newHashSet(
            "javax.servlet",
            "org.springframework.http"
    );

    /**
     * 忽略包
     * @param classQualifiedName
     * @return
     */
    public static boolean isIgnore(String classQualifiedName){
        for (String ignorePackage : IGNORE_PACKAGES) {
            if (classQualifiedName.startsWith(ignorePackage)) {
                return true;
            }
        }
        return false;
    }
}
